package org.example.main.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.main.entity.RentalApplication;
import java.util.List;

@Mapper
public interface RentalApplicationMapper {
    int insert(RentalApplication application);
    int updateStatus(long applicationId, String status);
    RentalApplication findById(long applicationId);
    List<RentalApplication> findByTenantId(long tenantId);
    List<RentalApplication> findByHouseId(long houseId);
    RentalApplication findByTenantIdAndHouseIdAndType(long tenantId, long houseId, String type);
    List<RentalApplication> findAll();
    int deleteById(long applicationId);
}
